package methodDemo;

/**
 * @author: snail_mount
 * @date: 20/1/22 22:16
 * @description: 需求1：使用方法重载的思想，设计比较两个两个数据是否相等的方法，兼容全整数类型byte,short,int,long）
 */
public class HeavyLoad {
    public static void main(String[] args) {
        byte a = 10;
        byte b = 20;
        short c = 344;
        short d = 648;
        int e = 1000000;
        int f = 489801498;
        long g = 398499840;
        long h = 784723657;
        System.out.println(compareWith(a, b));
    }

    private static boolean compareWith(byte a, byte b) {
        System.out.println("byte");
        return a == b;
    }
}
